package com.xhui.vimarket.zkplus.zul.attr.bean;

import lombok.Getter;
import lombok.Setter;

import org.zkoss.zk.ui.Component;

/**
 * ValiVo.
 * 
 * @版权：福富软件 版权所有 (c) 2011
 * @author wuyx
 * @version Revision 1.0.0
 * @see:
 * @创建日期：2011-3-22
 * @功能说明：
 * 
 */
public class ValiVo {
    
    /**
     * .
     */
    @Setter
    @Getter
    private Long      attrId;
    
    /**
     * .
     */
    @Setter
    @Getter
    private String    msg;
    
    /**
     * .
     */
    @Setter
    @Getter
    private Component rootComp;
    
    /**
     * 新建实例.
     * 
     * @param msg String
     * @param rootComp Component
     * @return ValiVo
     * @author wuyx
     * 2011-3-22 wuyx 
     */
    public static ValiVo newVo(String msg, Component rootComp) {
        ValiVo vo = new ValiVo();
        vo.setMsg(msg);
        vo.setRootComp(rootComp);
        return vo;
    }
    
    @Override
    public String toString() {
        return super.toString();
    }
    
}
